/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package preferences.Database;

import preferences.*;

/**
 *
 * @author Administrator
 */
public class Column {
    private String name;
    private String type;
    private Operator op;
    private String value;

    public Column(String name, String type, Operator op, String value) {
        this.name = name;
        this.type = type;
        this.op = op;
        this.value = value;
    }

    public boolean isNumeric(){
        if(type.equals("varchar") || type.equals("text"))
            return false;
        return true;
    }

    public Operator getOp() {
        return op;
    }

    public String getValue() {
        return value;
    }

    public void setOpValue(Operator op, String value){
        this.op=op;
        this.value=value;
    }

    public Column(String name, String type) {
        this.name = name;
        this.type = type;
        this.op=null;
        this.value=null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    
}
